package com.zcoj.wx.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author chenbin
 * @version 1.0
 * @description: TODO
 * @date 2023/8/19 11:56
 */
@Data
@TableName("wx_qr_code")
public class WxQrCode  implements Serializable {
	private static final long serialVersionUID = 2892248514883451461L;
	@TableId(type = IdType.AUTO)
	private Integer id;
	private String openId;
	private String event;
	private String eventKey;
	private String ticket;
	private Integer isUsed;
	private Integer isExpire;
	private Integer isPass;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date expireTime;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

}
